import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'productCateLevel'
})
export class ProductCateLevelPipe implements PipeTransform {

  transform(value: number, ...args: unknown[]): unknown {
    switch (value) {
      case 0:
        return "一级";
      case 1:
        return "二级";
      case 2:
        return "三级";
      case 3:
        return "四级";

      default:
        return;
    }
  }

}
